<!--{if $my_address}-->
                <script type="text/javascript">
                //<![CDATA[
                $(function(){
                    //$("input[name='address_options']").click(set_address);
                    $('[addr_id]').click(function(){
                        var addr_id = $(this).attr('addr_id');
                        fill_address_form(addr_id);
                    });
                    //init
                    fill_address_form($('#more-addr .post-addr').eq(0).attr('addr_id'));
                });
                function fill_address_form(addr_id){
                    var addr_data = addresses[addr_id];
                    for(k in addr_data){
                        switch(k){
                            case 'consignee':
                            case 'address':
                            case 'zipcode':
                            case 'email':
                            case 'phone_tel':
                            case 'phone_mob':
                            case 'region_id':
                                $("input[name='" + k + "']").val(addr_data[k]);
                            break;
                            case 'region_name':
                                $("input[name='" + k + "']").val(addr_data[k]);
                            break;
                        }
                    }
                }
                //]]>
                </script>
<div class="show-addr mt10"> 
	<!--{foreach from=$my_address item=address name=address_select}-->
	<div class="J_addr{$address.addr_id} {if !$smarty.foreach.address_select.first}hidden{/if} post-addr">
		<article class="wrap">
			<ul>
				<li class="consignee">
					<div class="content-inline-list">
						<div class="content-title">收货信息：</div>
						<div class="content-detail">{$address.consignee|escape} <!--{if $address.phone_mob}-->{$address.phone_mob}<!--{else}-->{$address.phone_tel}<!--{/if}--></div>
					</div>
				</li>
				<li class="address-content" >
					<div class="content-inline-list">
						<div class="content-title">收货地址：</div>
						<div class="content-detail"><span class="content-detail-addr">{$address.region_name|escape}&nbsp;&nbsp;  {$address.address|escape}</span>
						<aside class="content-nav">&nbsp;</aside>
						</div>
					</div>
				</li>
			</ul>
		</article>
	</div>
	<!--{/foreach}-->
	<input name="address_options" value="1" type="hidden"/>
	<input  name="consignee" type="hidden" value="" />
	<input  name="address" type="hidden" value="" />
	<input  name="zipcode" type="hidden" value="" />
	<input  name="email" type="hidden" value="" />
	<input  name="phone_tel" type="hidden" value="" />
	<input  name="phone_mob" type="hidden" value="" />
	<input  name="region_id" type="hidden" value="" />
	<input  name="region_name" type="hidden" value="" />
	<a  href="#more-addr"  id="J_other_addr" data-transition="slide"></a>
</div>
<!--{/if}-->